'use strict';

const Controller = require('egg').Controller;

class UploadTokenController extends Controller {
  async index() {
    this.ctx.body = { token: this.ctx.service.file.generateUploadToken() };
  }
}

module.exports = UploadTokenController;
